package com.learning.platform.dto;

import com.learning.platform.enums.PostStatus;
import com.learning.platform.enums.PostType;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class PostResponse {
    
    private Long id;
    private Long courseId;
    private String courseName;
    private Long userId;
    private String userName;
    private String userAvatar;
    private String title;
    private String content;
    private PostType postType;
    private PostStatus status;
    private Boolean isPinned;
    private Boolean isSolved;
    private Integer viewCount;
    private Integer likeCount;
    private Integer commentCount;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    
    // 用户相关信息
    private Boolean isLiked; // 当前用户是否已点赞
    private Boolean canEdit; // 当前用户是否可编辑
    private Boolean canDelete; // 当前用户是否可删除
}

